﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using System.Xml;

namespace GameBanChim_Version1
{
    public class MyCursor : Dialog
    {
        public override bool Init(ContentManager Content, int index, string strResourceXML)
        {
            Nsprite = 1;
            Sprite = new MySprite[Nsprite];
            Texture2D[] _temp = new Texture2D[1];
            _temp[0] = Content.Load<Texture2D>("Cursor/Cursor");
            Sprite[0] = new MySprite(_temp, 0, 0, 0);
            X = 0;
            Y = 0;
            return true;
        }

        public override VisibleGameObject Clone()
        {
            return base.Clone();
        }

        public override void Update(GameTime gameTime)
        {
            X = GlobalVariables.CurMouseState.X;
            Y = GlobalVariables.CurMouseState.Y;
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch);
        }
    }
}
